// mock数据类型定义
export interface StoreInfo {
  basicInfo: BasicInfo;
  dailyData: DailyData[];
  monthlyData: MonthlyData[];
  annualData: AnnualData;
}

export type StoreType = '直营' | '加盟'
export type StoreTag = '商业区' | '社区' | '学校' | '景区' | '交通枢纽'

export interface BasicInfo {
  storeId: string;
  storeName: string;
  province: string;
  city: string;
  coordinates: { lng: string; lat: string; };
  storeType: string;
  areaSize: number;
  openingDate: string;
  tags: string[];
};

interface Revenue {
  amount: number;
  yoy: string;
  mom: string;
  target: number;
}

export interface DailyData {
  date: string;
  revenue: Revenue;
  profit: number;
  orderCount: number;
  customerFlow: number;
}

interface MonthlyCosts {
  total: number;
  ingredients: number;
  labor: number;
  operation: number;
  energy: number;
  maintenance: number;
  financial: number;
}

interface MembershipData {
  consumptionRatio: string;
  newMembers: number;
  repurchaseRate: string;
}

interface MonthlyData {
  month: number;
  costs: MonthlyCosts;
  membership: MembershipData;
  deliveryRatio: string;
  staffEfficiency: string;
  areaEfficiency: string;
  tableTurnover: string;
  staffCount: number;
  totalRevenue: number;
}

interface PromotionData {
  revenue: number;
  profit: number;
  orderCount: number;
  customerFlow: number;
  revenueGrowth: string;
  roi: string;
  newCustomerRatio: string;
}

interface AnnualData {
  yearAmount: number;
  yearGrowth: string;
  promotions: {
    springFestival: PromotionData;
    laborDay: PromotionData;
    nationalDay: PromotionData;
    summer: PromotionData;
  };
  avgCustomerValue: number;
  rating: string;
  reviews: {
    positive: number;
    negative: number;
  };
}
